
	
******************************************************
** Table H.7: Balance Tests based on 'distance to hub'
******************************************************

use "$datadir\ewallet\maindata.dta", clear
	keep if $filters & time_id == 35
	
	local indvar min_distance_hub_500
	local opt "bdec(3) excel nonotes"
	areg invshare_sd `indvar'  distance_capital , robust cluster(district_id) a(state_id)
	outreg2 using "$outputdir_tab\Table_H_7.xls", replace `opt' side keep(`indvar')
		
	local covariates l_preshockdeposit s_status_atm branch_pop credsoc_pop s_status_commercialbank logpop_T literacy_rate ///
	cc_rate mobile_rate bank_rate 
	qui foreach var of varlist `covariates'{
		areg `var' `indvar'  distance_capital , robust cluster(district_id) a(state_id)
		outreg2 using "$outputdir_tab\Table_H_7.xls", append `opt' side keep(`indvar')	
	}
	